﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" href="~/Content/themes/base/core.css" />
    <link rel="stylesheet" href="~/Content/themes/base/base.css" />
    <link rel="stylesheet" href="~/Content/themes/base/dialog.css" />
    <link rel="stylesheet" href="~/Content/themes/base/theme.css" />
    <link rel="stylesheet" href="~/Content/bootstrap.min.css">
    <link rel="stylesheet" href="~/Content/metro-bootstrap.min.css">
    <link rel="stylesheet" href="~/Content/metro-bootstrap-responsive.min.css">
    <link rel="stylesheet" href="~/Content/iconFont.min.css">
    <link rel="stylesheet" href="~/Content/cloudstoragelight.css?v=20160317B">
    <link rel="shortcut icon" type="image/icon" href="@(Url.Content("~/favicon.ico"))" />

    <script type="text/javascript" src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.tmpl.js"></script>
    <script type="text/javascript" src="~/Scripts/linq.js"></script>
    <script type="text/javascript" src="~/Scripts/linq.jquery.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="~/Scripts/metro.min.js"></script>
    <script type="text/javascript" src="~/Scripts/datajs-1.1.3.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.fileupload.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.fileDownload.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.bottom-1.0.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.highlight.js"></script>
    <script type="text/javascript" src="~/Scripts/moment-with-locales.js"></script>
    <script type="text/javascript" src="~/Scripts/LyncUtil.js"></script>
    <script type="text/javascript" src="~/Scripts/paging.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery-ui.min-1.11.1.js"></script>
    <script type="text/javascript" src="~/Scripts/cloudstoragelight.js?v=20160317B"></script>

    <script src="https://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js" type="text/javascript">
    </script>
    <script type="text/javascript">

        function getQueryStringParameter(paramToRetrieve) {
            if (document.URL.split("?").length <= 1) return undefined;

            var params =
                document.URL.split("?")[1].split("&");
            var strParams = "";
            for (var i = 0; i < params.length; i = i + 1) {
                var singleParam = params[i].split("=");
                if (singleParam[0] == paramToRetrieve)
                    return singleParam[1];
            }
        }

        //Get the URI decoded SharePoint site url from the SPHostUrl parameter.
        var spHostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
        if (spHostUrl)
        {
            var layoutsRoot = spHostUrl + '/_layouts/15/';
            var linkElement = document.createElement('link');
            linkElement.setAttribute('rel', 'stylesheet');
            linkElement.setAttribute('href', layoutsRoot + 'defaultcss.ashx');
            var headElement = document.getElementsByTagName('head');
            headElement[0].appendChild(linkElement);

            var setupColor = function () {
                var color = $("#colorSample");
                var bg = color.css("background-color");
                var fc = color.css("color");
                $("body").css("background-color", bg);
                $("body").css("color", fc);
                $("#file-items").css("background-color", bg);
                $("<style>a.blobfile { color: " + fc + "; }</style>").appendTo("head");
                $(".navigation-bar").css("background-color", bg);
                $(".navigation-bar a").css("color", fc);
                $(".dropdown-menu a").css("color", "black");
            };

            $(function () {
                setupColor();
            });
            //$(window).load(setupColor);
        }

    </script>
</head>
<body style="overflow:auto;background-color:transparent;">
    <div>
        @RenderSection("header", required: false)
        <div class="container body-content metro" style="max-width:1500px;">
            @RenderBody()
        </div>
    </div>
    <script type="text/javascript">
        @Html.Partial("_Message")
    </script>
    @RenderSection("scripts", required: false)
    <div class="ms-core-header ms-navedit-titleBoxContainer" id="colorSample" style="display:none;" ></div>
</body>
</html>
